@props(['data'])
<div class="item">
  <div class="pic" style="background-image: url('{{ $data->image }}');">
    @if ($data->category)
    <em>{{$data->category['title']}}</em>
    @endif
  </div>
  <div class="text">
    <h4>{{$data->title}}</h4>
    <p>{{$data->desc}}</p>
    <div class="time">
      <img src="/source/images/i19.png" alt="发布时间">
      <span>{{$data->created_at}}</span>
    </div>
  </div>
</div>
